package com.metadata_system.common.db.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "md_config")
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Builder
public class Config {
    @Id
    private Integer id;

    /**
     * 配置-名称
     */
    private String name;

    /**
     * 配置-key
     */
    @Column(name = "my_key")
    private String myKey;

    /**
     * 配置-数据
     */
    private String content;

    /**
     * 更改时间
     */
    @Column(name = "updated_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;
}
